package cn.com.b2office.struts2.action;

import cn.com.b2office.service.OrderService;

import com.opensymphony.xwork2.ActionSupport;

public class CancelOrderAction extends ActionSupport {

	private static final long serialVersionUID = -6802005756865727326L;

	private String orderId = null;

	private OrderService orderService = null;

	public String execute() throws Exception {
		// 需要验证 orderId
		orderService.cancelOrder(orderId);
		return SUCCESS;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public void setOrderService(OrderService orderService) {
		this.orderService = orderService;
	}

}
